package com.babasport.bean.product;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

import com.babasport.bean.base.BaseObject;

/**
 * 品牌
 * 
 * @author Administrator
 * 
 */

@Entity
public class Brand extends BaseObject{

	private static final long serialVersionUID = -719546054203807578L;

	private String code;
	private String name;
	private String logoPath;
	private Boolean visible = true;

	public Brand() {
		super();
	}

	public Brand(String name, String logoPath) {
		super();
		this.name = name;
		this.logoPath = logoPath;
	}

	@Id
	@Column(length = 36)
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	@Column(length = 40, nullable = false)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(length = 300)
	public String getLogoPath() {
		return logoPath;
	}

	public void setLogoPath(String logoPath) {
		this.logoPath = logoPath;
	}

	@Column(nullable = false)
	public Boolean getVisible() {
		return visible;
	}

	public void setVisible(Boolean visible) {
		this.visible = visible;
	}

}
